clear

use "IHDS_final.dta"

xtset hhid

*LETs GENERATE TABLES

*Table A24
sutex prev_monsoon2 CI1_right CI4_right CI6_right,  digits (2) label minmax nobs 

*Table A25
eststo clear
eststo:xtreg CI1_right prev_monsoon2 prev_2, fe r cluster(district)
eststo:xtreg CI4_right prev_monsoon2 prev_2, fe r cluster(district)
eststo:xtreg CI6_right prev_monsoon2 prev_2, fe r cluster(district)

*Table A26
eststo clear
eststo:xtreg CI1_right lowdummy_ms_ms2 highdummy_ms_ms2, fe r cluster(district)
eststo:xtreg CI4_right lowdummy_ms_ms2 highdummy_ms_ms2, fe r cluster(district)
eststo:xtreg CI6_right lowdummy_ms_ms2 highdummy_ms_ms2, fe r cluster(district)

*Table A27
eststo clear
eststo:reg participation prev_monsoon2 prev_2, r cluster(district)


*Table A28
sutex prev_monsoon2 CI1_right CI4_right CI6_right IN16 IN16_dum if year==2011 | year==2012, file (Summary_relief_ms2.tex) digits (2) label minmax nobs replace

*Table A29
sutex prev_monsoon2 CI1_right CI4_right CI6_right if (year==2011 | year==2012) & IN16_dum==0, file (Summary_relief_noNREGA_ms2.tex) digits (2) label minmax nobs replace

*Table A30
sutex prev_monsoon2 CI1_right CI4_right CI6_right if (year==2011 | year==2012) & IN16_dum==1, file (Summary_relief_NREGA_ms2.tex) digits (2) label minmax nobs replace

*Table A31
eststo clear
eststo:reg CI1_right prev_monsoon2 prev_2   if IN16_dum==1,   r cluster(district)
eststo:reg CI4_right prev_monsoon2 prev_2   if IN16_dum==1,   r cluster(district)
eststo:reg CI6_right prev_monsoon2 prev_2   if IN16_dum==1,   r cluster(district)

eststo:reg CI1_right prev_monsoon2 prev_2   if IN16_dum==0,   r cluster(district)
eststo:reg CI4_right prev_monsoon2 prev_2   if IN16_dum==0,   r cluster(district)
eststo:reg CI6_right prev_monsoon2 prev_2   if IN16_dum==0,   r cluster(district)


*Table 32
eststo clear
eststo:reg CI1_right lowdummy_ms_ms2 highdummy_ms_ms2   if IN16_dum==1,   r cluster(district)
eststo:reg CI4_right lowdummy_ms_ms2 highdummy_ms_ms2   if IN16_dum==1,   r cluster(district)
eststo:reg CI6_right lowdummy_ms_ms2 highdummy_ms_ms2   if IN16_dum==1,   r cluster(district)

eststo:reg CI1_right lowdummy_ms_ms2 highdummy_ms_ms2   if IN16_dum==0,   r cluster(district)
eststo:reg CI4_right lowdummy_ms_ms2 highdummy_ms_ms2   if IN16_dum==0,   r cluster(district)
eststo:reg CI6_right lowdummy_ms_ms2 highdummy_ms_ms2   if IN16_dum==0,   r cluster(district)

